﻿using System;

namespace QuickUIT
{
    /// <summary>
    /// Represents errors that occur when finding a UI control.
    /// </summary>
    [Serializable]
    public sealed class UIControlNotFoundException : Exception
    {
        /// <summary>
        /// Initializes a new <see cref="UIControlNotFoundException"/>. 
        /// </summary>
        public UIControlNotFoundException() : base("The control was not found.")
        {
        }

        /// <summary>
        /// Initializes a new <see cref="UIControlNotFoundException"/>. 
        /// </summary>
        /// <param name="message">The exception message.</param>
        public UIControlNotFoundException(string message) : base(message)
        {
        }

        /// <summary>
        /// Initializes a new <see cref="UIControlNotFoundException"/>. 
        /// </summary>
        /// <param name="message">The exception message.</param>
        /// <param name="innerException">The inner exception.</param>
        public UIControlNotFoundException(string message, Exception innerException) : base(message, innerException)
        {
        }
    }
}
